package club.haomoon.core.entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;

@Data
@Schema(title = "充值订单实体类")
public class RechargeOrderData implements Serializable {

    @TableId(value="id", type= IdType.AUTO)
   @Schema(title = "ID")
    private Integer id;

   @Schema(title = "用户ID")
    private Integer userId;

   @Schema(title = "订单编号")
    private String sn;

   @Schema(title = "支付编号")
    private String paySn;

   @Schema(title = "支付方式: [2=微信支付, 3=支付宝支付]")
    private Integer payWay;

   @Schema(title = "支付状态: [0=待支付, 1=已支付]")
    private Integer payStatus;

   @Schema(title = "支付时间")
    private Long payTime;

   @Schema(title = "充值金额")
    private BigDecimal orderAmount;

   @Schema(title = "下单终端")
    private Integer orderTerminal;

   @Schema(title = "交易流水")
    private String transactionId;

   @Schema(title = "退款状态: [0=未退款 , 1=已退款]")
    private Integer refundStatus;
   @Schema(title = "退款交易流水号")
    private BigInteger refundTransactionId;
   @Schema(title = "创建时间")
    private Long createTime;

   @Schema(title = "更新时间")
    private Long updateTime;

   @Schema(title = "删除时间")
    private Long deleteTime;
}
